package atom.core0.exception;
/**
 * <p>Title: </p>
 * <p>Description:</p>
 * <p>Copyright: Copyright (c) 2011.12</p>
 * @author hike_man
 * @version 1.0
 */


public class ExceptionUtil
{
	public static BizException convert(Throwable e)
	{
		BizException re;
		if (e instanceof BizException)
		{
			re = (BizException)e;
		}
		else 
		{
			re = new BizException(e,"内部非BizException错误,请与系统管理员联系");
		}
		return re;
	}
}
